package mil.af.amc.adpetracker.web.actions.struts2.ros;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;
import mil.af.amc.adpetracker.model.Ros;
import mil.af.amc.adpetracker.service.RosService;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author Jason Ferguson
 */
@ParentPackage("json-default")
@Namespace("ros")
public class RosAction extends ActionSupport implements ModelDriven<Ros>, Preparable {

    private RosService rosService;

    @Autowired
    public void setRosService(RosService rosService) {
        this.rosService = rosService;
    }

    // ModelDriven implementation
    private Ros model;

    public Ros getModel() {
        return model;
    }

    // Preparable implementation
    public void prepare() {

    }

    @Action(value = "list", results = {
            @Result(name = "success", location = "/WEB-INF/struts2/ros/list.jsp")
    })
    public String execute() throws Exception {
        throw new UnsupportedOperationException();
    }

    @Action(value = "viewCreate", results = {
            @Result(name = "success", location = "/WEB-INF/struts2/ros/create.jsp")
    })
    public String viewCreate() throws Exception {
        throw new UnsupportedOperationException();
    }

    @Action(value = "create", results = {
            @Result(name = "success", location = "/WEB-INF/struts2/ros/list.jsp"),
            @Result(name="input", location = "/WEB-INF/struts2/ros/create.jsp")
    })
    public String create() throws Exception {
        throw new UnsupportedOperationException();
    }

    @Action(value="viewEdit", results = {
            @Result(name = "success", location = "/WEB-INF/struts2/ros/edit.jsp")
    })
    public String viewEdit() throws Exception {
        throw new UnsupportedOperationException();
    }

    @Action(value = "edit", results = {
            @Result(name = "success", location = "/WEB-INF/struts2/ros/list.jsp"),
            @Result(name = "input", location = "/WEB-INF/struts2/ros/edit.jsp")
    })
    public String edit() throws Exception {
        throw new UnsupportedOperationException();
    }

    @Action(value="viewDelete", results = {
            @Result(name="success", location = "/WEB-INF/struts2/ros/delete.jsp")
    })
    public String viewDelete() throws Exception {
        throw new UnsupportedOperationException();
    }

    @Action(value = "delete", results = {
            @Result(name = "success", location = "/WEB-INF/struts2/ros/list.jsp"),
            @Result(name = "input", location = "/WEB-INF/struts2/ros/delete.jsp")
    })
    public String delete() throws Exception {
        throw new UnsupportedOperationException();
    }

    @Action(value = "viewClose", results = {
            @Result(name="success", location = "/WEB-INF/struts2/ros/close.jsp")
    })
    public String viewClose() throws Exception {
        throw new UnsupportedOperationException();
    }

    @Action(value = "close", results = {
            @Result(name = "success")
    })
    public String close() throws Exception {
        throw new UnsupportedOperationException();
    }

}
